<html>
<!-- $LastChangedDate: 2009-11-07 22:56:33 -0500 (Sat, 07 Nov 2009) $ -->
<!-- Copyright (C) 2004,2009 Jim Brooks http://www.palomino3d.org -->
<head>
<title>Palomino - Compression</title>
<link rel='stylesheet' type='text/css' href='docs.css'>
<link rel='icon' type='image/png' href='images/favicon.png'/>
</head>
<body>

<!-- ----------------------------------------------------------------------- -->
<h1>Palomino - Compression</h1>
<p>
&copy;2004,2009&nbsp;&nbsp;Jim E. Brooks
&nbsp;&nbsp;<a href='http://www.palomino3d.org'>http://www.palomino3d.org</a>
</p>
<hr>
<ul>
  <li><a href='index.html'>Index</a></li>
  <li><a href='#Compression'>Compression</a></li>
</ul>

<!-- ----------------------------------------------------------------------- -->
<hr>
<a name='Compression'></a>
<h2>Compression</h2>
<p><!--date-->[2008/08]</p>
<p>
zlib is used to decompress data files that were compressed by gzip.
The base module has the low-level ReadFileGzip() function,
and the C++ stream class <a href='http://www.cs.unc.edu/Research/compgeom/gzstream/'>gzstream</a>.
</p>
<p>
Implemented in ModelCache:
<br>
Compressed 3D models are read from a .gz file using the C++ <i>gzstream</i> class
which is based on zlib, then gzstream is passed to osgDB::ReaderWriter::readNode(std::istream&amp;).
A consequence is that OSG must be notified of all directories
that contains graphics assets referenced by the 3D model file.
</p>

<!-- ********************************* END ********************************* -->
<hr>
<p align='center'>
<font size='-2'>
<!-- hhmts start -->
Last modified: Sat Nov  7 14:26:21 CST 2009
<!-- hhmts end -->
</font>
</p>

</body>
</html>
